package com.hoshiicloud.goods.entity.sku;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 平台商品表SKU
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ext_sku")
public class ExtSku implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    private Long id;

    /**
    *
    */
    @TableField("company_id")
    private Long companyId;


    /**
    *
    */
    @TableField("platform_id")
    private Long platformId;


    /**
    *
    */
    @TableField("store_id")
    private Long storeId;


    /**
    * spuid
    */
    @TableField("spu_id")
    private Long spuId;


    /**
    * skuid
    */
    @TableField("sku_id")
    private Long skuId;


    /**
    *
    */
    @TableField("sku_title")
    private String skuTitle;


    /**
    * 售价
    */
    @TableField("sale_price")
    private BigDecimal salePrice;


    /**
    * 市场价
    */
    @TableField("maket_price")
    private BigDecimal marketPrice;


    /**
    * 成本价
    */
    @TableField("cost_price")
    private BigDecimal costPrice;


    /**
    * 供应商
    */
    @TableField("vendor_id")
    private Long vendorId;


    /**
    * sku图片
    */
    @TableField("sku_image")
    private String skuImage;


    /**
    * 属性
    */
    @TableField("extend_property")
    private String extendProperty;


    /**
    * 规格
    */
    @TableField("extend_spec")
    private String extendSpec;


    /**
    * 1-单类仓库 2-多类仓库
    */
    @TableField("dispatch_policy")
    private Integer dispatchPolicy;


    /**
    * 单类仓库类别 ID
    */
    @TableField("dispatch_whid")
    private Long dispatchWhid;


    /**
    * 多类仓库类别ID 集合   1:2:3
    */
    @TableField("dispatch_whids")
    private String dispatchWhids;


    /**
    * 库存检验逻辑：1-库存足够才能下单 2-库存不够也能下单
    */
    @TableField("store_enough")
    private Integer storeEnough;

    /**
     * 收货间隔时间，以天为单位，默认为1天
     */
    @TableField("receipt_interval")
    private Integer receiptInterval;
    /**
     *  提货日期
     */
    @TableField("receipt_date")
    private LocalDateTime receiptDate;

    /**
    * 创建时间
    */
    @TableField("created_time")
    private LocalDateTime createdTime;


    /**
    * 修改时间
    */
    @TableField("updated_time")
    private LocalDateTime updatedTime;


    /**
    * 建立人
    */
    @TableField("created_by")
    private String createdBy;


    /**
    * 修改人
    */
    @TableField("updated_by")
    private String updatedBy;


    /**
    * 状态  0-待审批 1-审批未过 2-已上架 3-已下架
    */
    @TableField("status")
    private Integer status;


    /**
    * 是否删除
    */
    @TableField("deleted")
    private Integer deleted;



}
